﻿@model Entities.UserDetailsModel
<table width="100%" border="0" cellspacing="0" cellpadding="0">
    <tr>
        <td class="sep_padding">
            <table width="100%" border="0" cellspacing="0" cellpadding="0">
                <tr>
                    <td class="section_tit">
                        @ViewBag.UserName History <a href="#">
                            <img alt="" src="../../Content/images/icon_info.png" width="14" height="14" hspace="7"
                                vspace="2" border="0" align="right" /></a><a href="#"><img alt="" src="../../Content/images/icon_print.png"
                                    width="16" height="16" hspace="4" border="0" align="right" /></a>
                    </td>
                </tr>
                <tr>
                    <td class="stat">
                        <div>
                            <p>
                                Number of File/Directory Operations: @Model.TotalOperationsCount</p>
                            <p>
                                Number of deleted files: @Model.DeletedCount</p>
                            <p>
                                Number of renamed files: @Model.RenamedCount</p>
                            <p>
                                Number of moved files: @Model.MovedCount</p>
                            <p>
                                Number of created files: @Model.CreatedCount</p>
                            <p>
                                Last activiy Date/Time:@Model.LastActivityDate</p>
                        </div>
                        <div>
                        </div>
                        <hr />
                       <h2> Used Client Machine Names</h2>
                       <p> Top 5 used client machines</p>
                        @*  @{
                                        var grid = new WebGrid(source: Model.UsedMachines.AsEnumerable, rowsPerPage: 20, ajaxUpdateContainerId: "grid");    
                            @grid.GetHtml(htmlAttributes: new { id = "grid" }, tableStyle: "ordertable", headerStyle: "stat_grid_tit", rowStyle: "grid2", alternatingRowStyle: "grid1",
 columns: grid.Columns(
                              grid.Column("MachineName", "Client Name"),
         grid.Column("OperationsCount", "Number of Operations")))
                            }*@
                    </td>
                </tr>
            </table>
        </td>
    </tr>
</table>
